<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
	<head>
		<base href="<%=basePath%>">
		<title>insert title</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">    
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
			<link rel="stylesheet" type="text/css" href="styles.css">
		-->
		<link rel="stylesheet" href="<%=basePath %>styles/bootstrap.css">
	</head>
	<body>
		<nav class="navbar navbar-default navbar-static-top">
        <div class="container">
            <div class="row">
                <h1 class="text-center">${examPaper.examPaperTitle }</h1>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <label class="col-md-offset-6">课程：${examPaper.cource.courceName }</label>
                </div>
                <div class="col-md-6">
                    <label class="col-md-offset-2">命题教师：${examPaper.teacher.teacherName }</label>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <label class="col-md-offset-6">分值：${examPaper.examPaperScore }</label>
                </div>
                <div class="col-md-6">
                    <label class="col-md-offset-2">考试时间：${examPaper.examPaperDuration }分钟</label>
                </div>
            </div>
        </div>
    </nav>
    <div class="container">
        <div class="row">
        	<c:forEach items="${examContentMap }" var="map" varStatus="L">
            <label>${L.index+1 } ${map.key.examItemTypeName }</label>
            <div class="col-md-offset-1">
                <div class="row">
                    <c:forEach items="${map.value }" var="examContent" varStatus="I">
                    	<label>${I.index+1 }) ${examContent.examItem.examItemDescription }</label>
                    	<div class="row">
                        	<label class="col-md-12">
                            	${examContent.examItem.examItemContent }
                       		</label>
                    	</div>
                    	<br/>
                    </c:forEach>
                </div>
            </div>
            </c:forEach>
        </div>
    </div>
	</body>
</html>